
package code.codeworld.common.dict.model;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * PersonalLog实体
 *
 * @author freecode
 * @date 2023/03/23 00:20
 **/
@Getter
@Setter
@Entity
@TableName("dict")
public class Dict {

    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 编码 Y
     */
    private String code;

    /**
     * 类型
     */
    private String type;

    /**
     * 序号 Y
     */
    private Integer sort;

    /**
     * 文本 Y
     */
    private String text;

    /**
     * 备注
     */
    private String remark;


    /**
     * 删除标志（0.正常 1.删除） Y
     */
    @Column(name = "delete_flag")
    private Integer deleteFlag;

    /**
     * 创建IP
     */
    @Column(name = "create_ip")
    private String createIp;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 创建用户
     */
    @Column(name = "create_user")
    private Long createUser;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 修改用户
     */
    @Column(name = "update_user")
    private Long updateUser;



}
